package com.geovis.emergency.spd.entity.pc.pojo.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 通用字典VO
 * </p>
 *
 * @author Lonsho
 * @version 1.0
 * @date 2022/6/10
 */
@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "StringVO", description = "应急预案指挥模块-通用字典VO")
public class StringVO {
    private String id;
    private String name;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String type;

    public static StringVO newEntity(String id, String name){
        StringVO stringVO = new StringVO();
        stringVO.setId(id);
        stringVO.setName(name);
        return stringVO;
    }
}
